<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 引入通用css -->
    <link rel="stylesheet" href="../common/public.css" />
    <link rel="stylesheet" href="../common/ui/vant-ui/ui.css" />

    <!-- vue -->
    <script src="../common/js/vue2.js"></script>
    <!-- 引入http-vue-loader -->
    <script src="../common/js/vueLoader.js"></script>
    <!-- 引入样式vant.js -->
    <script src="../common/ui/vant-ui/ui.js"></script>
  </head>
  <body>
    <div id="app">
      <div class="flex jcc">
        <div class="loginBox" @click.self="show=false">
        <div class="fs18 tac mgt20" >{{ active==0?'验证码':'微信' }}登录/注册</div>
          <div class="fs12 tac mgb10 c9">首次验证通过即可注册</div>
          <!-- <van-tabs type="card"  v-model="active">
            <van-tab title="手机号登录">
             
            </van-tab>
            <van-tab title="微信登录">
              
            </van-tab>
          </van-tabs> -->
          <div class="cardHeight">
            <div class="pd20" v-if="active==0">
                <div class="pore">
                  <van-field
                    v-model="phoneNumber"
                    placeholder="请输入手机号"
                    class="inputType"
                    :clickable="true"
                  >
                    <template #label>
                      <div @click="show=!show">
                        <span>{{ num }}</span>
                        <span><van-icon name="play" class="rote" /></span>
                      </div>
                    </template>
                  </van-field>
                  <div class="numCard fs12" v-if="show">
                    <div class="flex jcsb">
                      <div>中国大陆</div>
                      <div>+86</div>
                    </div>
                    <div>非中国大陆手机号</div>
                  </div>
                </div>
                <van-field
                  v-model="phoneNumber"
                  placeholder="请输入验证码"
                  class="inputType mgt20"
                  :clickable="true"
                >
                  <template #button>
                    <div class="yzm">发送验证码</div>
                  </template>
                </van-field>
                <div class="mgt40">
                  <van-button type="primary" class="w100">登录/注册</van-button>
                </div>
                <div class="fs12 mgt20 flex jcc wx" @click="active=1">
                  <van-icon name="wechat" size="14" />微信注册登录
                </div>
                <div class="fs12 pd10 flex jcc mgt20">
                  <div class="mgr8">
                    <van-checkbox shape="square" icon-size="12px" v-model="read"></van-checkbox>
                  </div>
                  <div>
                    已阅读并同意《用户协议》 《隐私政策》允许{公司名}对本人账号信息管理
                  </div>
                </div>
              </div>
              <div class="flex column aic" v-else>
                <div class="mgt20"></div>
                <div class="ewm mgt20">
                  <img src="../common/img/ewm.jpg" alt="" />
                </div>
                <div class="fs12 c9 mgt20">请使用微信扫描二维码</div>
                <div class="help" @click="active=0"><span><van-icon name="play" /></span>验证码登录/注册</div>
              </div>
          </div>
          <div class="botmTxt">
            <div>客服电话 400-065-5799 工作时间：8:00-22:00</div>
            <div class="mgt10">
              人力资源服务许可证营业执照朝阳区人社局监督电话
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
<style>
  body {
    background-color: var(--primary-color);
  }
  .loginBox {
    width: 400px;
    height: 550px;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    opacity: 0.9;
    position: relative;
    margin-top: 40px;
  }
  .inputType {
    border: 1px solid #b4b4b4;
    border-radius: 10px;
  }
  .rote {
    transform: rotate(90deg);
  }
  .numCard {
    border: 1px solid #b4b4b4;
    width: 140px;
    background-color: #fff;
    position: absolute;
    left: 14px;
    bottom: -70px;
    z-index: 1000;
    padding: 5px;
    box-sizing: border-box;
    line-height: 28px;
    border-radius: 10px;
  }
  .numCard div:hover {
    border-radius: 5px;
    background-color: #f8f4f4;
    color: var(--primary-color);
  }
  .cardHeight {
    height: 400px;
  }
  .yzm:hover {
    color: var(--primary-color);
  }
  .botmTxt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    /* margin-top: 60px;   */
  }
  .ewm {
    width: 178px;
    height: 178px;
  }
  .ewm img {
    width: 100%;
    height: 100%;
  }
  .help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 20px;
    background-color: #eeeeee65;
    padding: 8px 18px;
    border-radius: 5px;
  }
  .help span{
    transform: rotate(180deg);
    margin-right: 2px;
    color: #999;
    font-size: 12px;
    
  }
  .help:hover,.help:hover span{
    background-color: var(--primary-color);
    color: #fff;
  }
  .wx:hover{
    color: var(--primary-color);
  }
  @media (max-width: 500px) {
    .loginBox {
      margin-top: 0;
      width: 100%;
      height: 94vh;
      border-radius: 0;
    }
  }
</style>
<script>
  Vue.use(httpVueLoader);
  new Vue({
    el: "#app",
    data: {
      show: false,
      phoneNumber: "",
      num: "+86",
      active: 0,
      read:false,
    },
    components: {
      top: httpVueLoader("../common/commpent/top.vue"),
    },
    methods: {},
  });
</script>
